package com.campus_information_portal.entity;


import com.campus_information_portal.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

/**
 * @author Y-Rainson
 * @create 2018-03-31 23:06
 **/


public class Party {
    private int partyInfoId;
    private Integer partyOrganizationNum;
    private String partyName;
    @JsonSerialize(using = DateJsonType.class)
    private Date partyFoundTime;
    private String partyDescription;


    public int getPartyInfoId() {
        return partyInfoId;
    }

    public void setPartyInfoId(int partyInfoId) {
        this.partyInfoId = partyInfoId;
    }


    public Integer getPartyOrganizationNum() {
        return partyOrganizationNum;
    }

    public void setPartyOrganizationNum(Integer partyOrganizationNum) {
        this.partyOrganizationNum = partyOrganizationNum;
    }


    public String getPartyName() {
        return partyName;
    }

    public void setPartyName(String partyName) {
        this.partyName = partyName;
    }


    public Date getPartyFoundTime() {
        return partyFoundTime;
    }

    public void setPartyFoundTime(Date partyFoundTime) {
        this.partyFoundTime = partyFoundTime;
    }


    public String getPartyDescription() {
        return partyDescription;
    }

    public void setPartyDescription(String partyDescription) {
        this.partyDescription = partyDescription;
    }

    @Override
    public String toString() {
        return "Party{" +
                "partyInfoId=" + partyInfoId +
                ", partyOrganizationNum=" + partyOrganizationNum +
                ", partyName='" + partyName + '\'' +
                ", partyFoundTime=" + partyFoundTime +
                ", partyDescription='" + partyDescription + '\'' +
                '}';
    }
}
